package com.zy.scwuser.exp;

import com.zy.scwuser.enums.UserExceptionEnum;

/**
 * @Author: zy 690748807@qq.com
 * @Description:
 * @Date: 2024/5/11 22:01
 * @Version: 1.0
 * @name 方法名字：构造UserException的有参和无参数方法---否则new UserException---》报错
 */

public class UserException extends RuntimeException{
    public UserException(){}

    public UserException(UserExceptionEnum enums){
        super(enums.getMessage());

    }
}
